package com.ruoyi.system.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户菜单关系对象 sys_user_menu
 * 
 * @author WJH
 * @date 2022-08-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SysUserMenu
{
    private static final long serialVersionUID = 1L;
    /** 用户主键 */
    @com.ruoyi.common.core.annotation.Excel(name = "用户主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "用户主键")
    private Long userId;
    /** 菜单主键 */
    @com.ruoyi.common.core.annotation.Excel(name = "菜单主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "菜单主键")
    private Long menuId;
    /** 显示顺序 */
    @com.ruoyi.common.core.annotation.Excel(name = "显示顺序")
    @TableField(exist = true)
    @ApiModelProperty(value =  "显示顺序")
    private Integer orderNum;
    public static final String USER_ID="user_id";
    public static final String MENU_ID="menu_id";
    public static final String ORDER_NUM="order_num";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("menuId", getMenuId())
            .append("orderNum", getOrderNum())
            .toString();
    }
}
